package io.renren.modules.app.service;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import io.renren.modules.app.entity.ibps.BpmInst;

@Repository
public interface IBpmInstService extends JpaRepository<BpmInst, String> {
	/**
	 * 根据流程key,查询所有已经完成的流程信息
	 * 
	 * @return
	 */
	@Query(value = "SELECT * FROM IBPS_BPM_INST WHERE PROC_DEF_KEY_ = ?1", nativeQuery = true)
	List<BpmInst> findByDefKey(String PROC_DEF_KEY_);
}
